//The player class. This class is the one that needs all the pieces, so I'll have an array of pieces.
#pragma once
#include "Piece.h"
class Player
{
private:
	int color; //0 is Red, 1 is green, 2 is yellow, 3 is blue.
	Piece * pieces; //the dynamic array of Pieces.
	int numberOfPieces; //used for more than one thing, so instead of making it an argument, I'm just making it a member.
public:
	Player() {color = 0; numberOfPieces = 1;}
	Player(int col, int num) {color = col; numberOfPieces = num;}
	void setNumber(int num) {numberOfPieces = num;}
	int getNumber() {return numberOfPieces;}
	void setPieces();
	Piece *findPiece(int num) {return &pieces[num];} //Just in case this needs to be used, it can.
	int findPiece(float, float); //this find pieces uses two float values, and will return the actual Piece number.
	void move(int, float, float); //The int is piece. The two float values are the new place for it to move.
	void setColor(int col) {color = col;}
	int getColor() {return color;}
	~Player(); //Destructor. Will pretty much be only used to delete the dynamic array from memory.
	//If there's anything else the player class needs that isn't here, feel free to add it.
	void glDraw();
	void drawPiece();
};